deprecated sysctl system call 이라는 Message를 봤습니다.

hyper9의 이미지

안녕하세요 ~

얼마전에 Kernel 을 upgrade하고 나서, kernel log를 확인안해봤었는데,
오늘 보니까 "deprecated sysctl system call"관련 message가 나오는 것 같아서요.
질문을 드려보려고 합니다.

메시지를 좀더 자세히 적어보면요..
Mar 19 11:05:18 localhost kernel: warning: process `alertagent' used the deprecated sysctl system call with 3.5.16 - 3.1.
Mar 19 11:05:18 localhost kernel: warning: process `alertagent' used the deprecated sysctl system call with 3.5.8.
Mar 19 11:05:18 localhost kernel: warning: process `alertagent' used the deprecated sysctl system call with 3.5.17 - 3.14.
Mar 19 11:05:18 localhost kernel: warning: process `alertagent' used the deprecated sysctl system call with 3.5.17 - 3.15.
Mar 19 11:05:18 localhost kernel: warning: process `alertagent' used the deprecated sysctl system call with 3.5.17 - 3.16.

이렇게 보이네요..

이 Message를 어떻게 해석을 해야할지 싶어서 질문을 드립니다.
특히 매 line의 끝에 보이는 "3.5.16 - 3.1", "3.5.8" 이런 숫자들은 어떤 의미를 가지는 걸까요?
조언 부탁 드립니다.
미리 감사드립니다.

codebank의 이미지

해당 메시지의 의미는 더이상 kernel에서 사용하지 않는 또는 사용되고 있지 않는
시스템 콜을 호출해서 발생하는 메시지 입니다.

해당 메시지가 발생하는 곳은 /usr/src/linux/kernel/sysctl.c의 거의 마지막 함수인

static int deprecated_sysctl_warning(struct __sysctl_args *args)

에서 발생하는 것입니다.
숫자의 의미는 /usr/src/include/sysctl.h의 struct __ssyctl_args 를 참고하시고
60 Line에 있는 enum에 정의되어있는 의미와 그 아래에있는 숫자들을 합해서보시면 될것같네요.

3.5.8의 의미를 enum에 맞춰서 한번 추측해보면

3은 CTL_NET(Networking), 5는 NET_IPV4, 8은 NET_IPV4_FORWARD의 뜻이 됩니다.
(16은 NET_IPV4_CONF...)

위 경고는 네트워크카드에서 발생하는 것으로 추측이 됩니다.

------------------------------
좋은 하루 되세요.

------------------------------
좋은 하루 되세요.

hyper9의 이미지

설명을 듣고 나니, 조금 더 살펴볼 기운이 나네요.
그렇지 않아도,,해결책을 못 찾아서 고생하고 있었거든요 ^^
감사합니다. ~

hyper9의 이미지


위에 질문을 드렸던 숫자들의 의미중에서요.. 3.5.8 같은것은 설명해 주신대로
이해를 할 수 있을 것 같은데요.

3.5.17 - 3.16. 같은 것은 어떻게 이해를 하는 것이 좋을까요?
뺄셈을(^^)하는 것도 아닌 것 같고,, 범위를 말하는 것도 아닌것 같고..
잘 이해가 안가서 다시 질문을 드립니다.

미리 감사드립니다. ~

hyper9의 이미지

위의 분이 설명해 주신바와 같이
Mar 19 11:05:18 localhost kernel: warning: process `alertagent' used the deprecated sysctl system call with 3.5.8.

의 의미가 3은 CTL_NET(Networking), 5는 NET_IPV4, 8은 NET_IPV4_FORWARD의 뜻이 됩니다.
인데요.

그럼 위와 같은 message가 나왔다는 것은 IPV4_Forwarding을 위한 system_call이 안되는 걸까요?
또 실제로 CTL_NET, NET_IPV4, NET_IPV4_FORWARD와 같은 형식으로 불리워지는 system_call은 Kernel
내에서 어떤 형태로 존재하는 걸까요?

아직 제대로 이해하지 못해서, 질문도 모호한 것 같긴합니다. ㅜㅜ
조언 주시면 감사하겠습니다.

hyper9의 이미지

한동안 다른일로 좀 바쁘다가, 오늘 다시 deprecated_sysctl_warning에 대해서 찾아보았는데요.

Kernel source 중에서는 /kernel/sysctl.c에서 정의되어 있는 것 같네요.
불려지는 곳도 sysctl.c에서 인것 같고요 ..

일단은 제가 첫글에서 말씀드렸던 message인
Mar 19 11:05:18 localhost kernel: warning: process `alertagent' used the deprecated sysctl system call with 3.5.16 - 3.1.
는 deprecated_sysctl_warning()이라는 function에서 print하는 것이었고요.

이 deprecated_sysctl_warning()이라는 function은 _sysctl이라는 system call service routine인 sys_sysctl()에서 불려지는 것 같습니다.
다른 곳은 Kernel source tree안에서 찾을 수가 없네요.

sys_sysctl()안을 보면,
...
...
error = deprecated_sysctl_warning(&tmp);
if (error)
goto out;
...
...
이렇게 되어 있어서요.

deprecated_sysctl_warning()이 system call이 deprecate인것인가를 check하고 그 결과에 따라서는 sysctl을 수행하기 전에 error로 처리해버리는 것 같은데요 ...

이 deprecated_sysctl_warning() function안으로 들어가 보면요,,

return은 오직 -ENOTDIR, -EFAULT, 0 이렇게 3가지 값인데,

return 값이 0 이면 (제 생각엔 이 경우는 문제가 없는 경우라고 이 function에서 check한 경우
인것 같습니다.) 5번까지만...
Mar 19 11:05:18 localhost kernel: warning: process `alertagent' used the deprecated sysctl system call with 3.5.16 - 3.1.
이런 message를 print합니다.

하지만 계속 0을 return하기 때문에, sysctl system call service routine에서는
전혀 문제로 다루지도 않게 되네요 ..

제 생각엔,,,전혀 신경쓸 필요가 없는 message같아 보인느데요..
여러분들의 조언을 듣고 싶어서 글을 올립니다.

일단 두 function을 첨부하겠습니다. ^^

댓글 첨부 파일: 
첨부파일 크기
Image icon sys_sysctl.JPG23.58 KB
Image icon deprecated_sysctl_warning.JPG46.16 KB

댓글 달기

Filtered HTML

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.

BBCode

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param>
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.

Textile

  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • You can use Textile markup to format text.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>

Markdown

  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • Quick Tips:
    • Two or more spaces at a line's end = Line break
    • Double returns = Paragraph
    • *Single asterisks* or _single underscores_ = Emphasis
    • **Double** or __double__ = Strong
    • This is [a link](http://the.link.example.com "The optional title text")
    For complete details on the Markdown syntax, see the Markdown documentation and Markdown Extra documentation for tables, footnotes, and more.
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>

Plain text

  • HTML 태그를 사용할 수 없습니다.
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
  • 줄과 단락은 자동으로 분리됩니다.
댓글 첨부 파일
이 댓글에 이미지나 파일을 업로드 합니다.
파일 크기는 8 MB보다 작아야 합니다.
허용할 파일 형식: txt pdf doc xls gif jpg jpeg mp3 png rar zip.
CAPTCHA
이것은 자동으로 스팸을 올리는 것을 막기 위해서 제공됩니다.