Elazar Leibovich | 26 Mar 22:36 2015
Picon

Good design to expose debug info from kernel module

Hi,

I'm writing a kernel module, and I want to expose some debug
information about it.

The debug information is often of the form of request-response.

For example:

- Hey module, what's up with data at 0xffffe8ff0040c000?
- Cached, populated two hours ago.

- Hey module, please invalidate data at 0xffffe8ff0002cb00
- Sure thing.

- Hey module, please record all accesses to 0xffffe8ff0006bbf0.
- OK, ask me again for stats-5
...
- Hey module, what's in stats-5?
- So far, 41 accesses by 22 users.

Now, the question is, what is a good design to expose this information.

I think that the most reasonable way to interact with userspace is
through a debugfs file.

The user would open the debugfs file in read+write mode, would write a
request, and accept a response from it.

As I see it, there are two fundamental problems needs to be solved:
(Continue reading)

Jonathan Ben Avraham | 24 Mar 10:46 2015
Picon

[YBA] libroffice Hebrew input stopped working

Dear colleagues,
I noticed today that Hebrew input stopped working in my LibreOffice 
installations.

When I type using a Hebrew keyboard layout the text cursor blinks but 
stays in the same place, no Hebrew letter is displayed. Until a few days 
ago there was no problem using the standard Hebrew keyboard.

Debian Wheezy:
Linux tavas 3.7-trunk-amd64 #1 SMP Debian 3.7.1-1~experimental.2 x86_64 GNU/Linux

LibreOffice 3.5.4.2
Build ID: 350m1(Build:2)

Hebrew keyboard installed with "Keyboard Layout Plugin" "il" or "il lyx" 
or "il phonetic" (None of them work now).

Not dependent on font selection

Hebrew is still working in all other applications (Yudit, IceWeasel, 
IceDove, gnome-term...).

Not solved by removing ~/.config/libreoffice

Any ideas?
TIA,

  - yba

--

-- 
(Continue reading)

Lev Olshvang | 22 Mar 12:31 2015

HOW to prevent DNS resolver from going into revert lookup (record of PTR type)?

Hi Linuxers,

 

I am jumping on today’s DNS thread,

 

My Linux Debian  uses DNS service some Windows server.

 

Linux resolver  gets back  IP address ( type A and AAA records), but fail to get back PTR record.

( I am observing DNS queries and failures with Wireshark)

 

This  cause ldap to use address instead of  host name in  authentication realm and fail.

When I add address –hostname pairs in /etc/hosts,  ldap succeeds. (it uses name in the realm claim)

 

 

 

I did not yet find a way to change nsswitch.conf to some resolver that prevents reverse lookup,

Please give me some ideas if it is possible.

 

 

Lev.

_______________________________________________
Linux-il mailing list
Linux-il@...
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
Gabor Szabo | 22 Mar 11:50 2015

Server stopped DNS name resolution

Hi,

I run an Ubuntu based VPS on Linode.
I few hours ago the machine stopped resolving hostnames.
I think it was after an "aptitude safe-upgrade" and a reboot, but I am not sure. Maybe was like this earlier.

It takes ages to ssh to it, once I got to the machine I can ping IP addresses from it, but I cannot ping anything with a hostname.

this is what I have in resolv.conf

# cat /etc/resolv.conf 

domain members.linode.com

search members.linode.com

nameserver 72.14.179.5

nameserver 72.14.188.5

options rotate


I tried to replace the nameservers with others that are listed in another of my servers, but that did not make a change.

How can I track down what has the server stopped resolving hostnames?

Accessing the server via HTTP work as expected.

Gabor





_______________________________________________
Linux-il mailing list
Linux-il@...
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
Roman Ovseitsev | 20 Mar 18:07 2015
Picon

Something is injecting malware into my HTTP traffic

Please forgive the slight off-topic, but I am experiencing a rather strange issue while downloading a certain file over HTTP.

Instead of getting node.js installer as expected from here http://nodejs.org/dist/v0.12.0/node-v0.12.0-x86.msi I am receiving a completely different executable - an installer for Elcomsoft's Advanced EFS Password Recovery whatever that is.

Both files are exactly the same size but SHA sums obviously don't match.

SSL version of the link - https://nodejs.org/dist/v0.12.0/node-v0.12.0-x86.msi works as expected. i.e. downloads the correct node.js installer.


I have verified this on three different machines running Fedora, CentOS, and Windows. None of these machines ever exchanged any files or used anything else but the default repos. In fact the windows machine is a 13 years old pc with a freshly installed OS. So presumably that dismisses any possibility of rootkits.

It doesn't seems to be due to my router or ISP either. I am getting the wrong executable on two of my neighbours' Wi-Fi networks and at least one of them seems to be using a different ISP.
However it doesn't happen on another Israeli nor a couple of US and UK servers I've tried so far.
I am not using any proxies either.

nodejs.org domain on all of the above resolves to the same IP.


What's going on?
Could be that the ISPs are the culprit?

Considering that the application is relatively popular and I am the only one experiencing this issue it doesn't seem to be the case of nodejs.org server doing this on purpose (knowingly or not).
_______________________________________________
Linux-il mailing list
Linux-il@...
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
Shlomo Solomon | 17 Mar 08:08 2015
Picon

permission problem - disk on key on PI

Can anyone suggest why I can't seem to change permissions of files on a
disk-on-key mounted on my PI? 
The chmod command reports success, but nothing has changed. 
BTW - all commands over SSH

Here's the Raspbian version: 
pi <at> raspberrypi /media/D80C-5ACC/pictures $ uname -a
Linux raspberrypi 3.18.7-v7+ #755 SMP PREEMPT Thu Feb 12 17:20:48 GMT
2015 armv7l GNU/Linux

Here's the relevant line from /etc/fstab on the PI:
/dev/sda1      /media/D80C-5ACC vfat    defaults,noatime  0       1

pi <at> raspberrypi /media/D80C-5ACC/pictures $ ls -la
total 52484
drwxr-xr-x 2 root root    4096 Mar 10 19:51 .
drwxr-xr-x 7 root root    4096 Jan  1  1970 ..
-rwxr-xr-x 1 root root 3387111 Mar  3 08:32 a.jpg
-rwxr-xr-x 1 root root 3470696 Mar  3 08:31 b.jpg
-rwxr-xr-x 1 root root 2924927 Mar  3 08:30 c.jpg

<< snip snip >>

pi <at> raspberrypi /media/D80C-5ACC/pictures $ sudo chmod -v -R 777 *
mode of `a.jpg' changed from 0755 (rwxr-xr-x) to 0777 (rwxrwxrwx) 
mode of `b.jpg' changed from 0755 (rwxr-xr-x) to 0777 (rwxrwxrwx) 
mode of `c.jpg' changed from 0755 (rwxr-xr-x) to 0777 (rwxrwxrwx) 

<< snip snip >>

pi <at> raspberrypi /media/D80C-5ACC/pictures $ ls -la 
total 52484
drwxr-xr-x 2 root root    4096 Mar 10 19:51 . 
drwxr-xr-x 7 root root    4096 Jan  1  1970 .. 
-rwxr-xr-x 1 root root 3387111 Mar  3 08:32 a.jpg 
-rwxr-xr-x 1 root root 3470696 Mar  3 08:31 b.jpg 
-rwxr-xr-x 1 root root 2924927 Mar  3 08:30 c.jpg

--

-- 
Shlomo Solomon
http://the-solomons.net
Sent by Claws Mail 3.11.1 - KDE 4.12.15 - LINUX Mageia 4

_______________________________________________
Linux-il mailing list
Linux-il@...
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il

Gabor Szabo | 15 Mar 11:25 2015

OT: Biometric ID

A few weeks ago I asked to get a biometric ID. They took my finger prints and asked all kinds of funny questions to make sure its me.
Today I went to pick up my new ID and their system could not recognize my finger prints.

I got a bit nervous, but they calmed me down that I have nothing to worry because the finger prints are only for the Interior Ministry and they are sure the one in the system matches the one on my finger and that I will only need it when dealing with Interior Ministry and they will mark in the system that the fingerprints did not match when I received the ID.

So apparently they have a field in the database for this information.

They offered to order a new biometric card - claiming that the problem is only in the card,
but they can only do that if first they give the broken one to me.

So I'd have a card that can identify me "without any doubt", except that the fingerprint in it cannot be matched to mine.

I asked if I could get a new non-biometric ID, but I was told I cannot any more. Once I signed up for biometric ID, I cannot go back.

Madness.

Gabor

_______________________________________________
Linux-il mailing list
Linux-il@...
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
Steve Litt | 12 Mar 15:32 2015

Is Beersheva really becoming a high-tech powerhouse?

Hi all,

I read the following article, which says that Beersheva might become a
high-tech powerhouse:

http://www.itworld.com/article/2894051/why-israel-could-be-the-next-cybersecurity-world-power.html	

Given that trade mags are half stone truth and half hype, what do
you all think of what they say in the article? Are any of you working in
Beersheva?

Thanks,

SteveT

Steve Litt                *  http://www.troubleshooters.com/
Troubleshooting Training  *  Human Performance

_______________________________________________
Linux-il mailing list
Linux-il@...
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il

Shlomo Solomon | 10 Mar 21:19 2015
Picon

Samba on Raspberry PI

I just got the new Raspberry PI 2 and plan to use it as a file server
on my home network.

Does anyone have a working smb.conf file for the PI? I haven't really
played with it much, but adapting the smb.conf file from my Mageia box
gave me only "partial" results. Maybe some parameters are
implemented differently.
Windows and Linux machines on the network can see the PI but are being
asked for a password. The default PI password (which I haven't yet
changed) doesn't help.

--

-- 
Shlomo Solomon
http://the-solomons.net
Sent by Claws Mail 3.11.1 - KDE 4.12.15 - LINUX Mageia 4

_______________________________________________
Linux-il mailing list
Linux-il@...
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il

Tzafrir Cohen | 7 Mar 02:42 2015
Picon

Hebrew in markup

Hi

I'd like to write a Heberw document, get a nice result HTML and still be
able to save the source in proper version control.

I could use raw HTML, but there are better options nowadays - asciidoc,
markdown (various implementations), reSt, and such.

But I could not figure a simple way with any of those to get decent
control of bidi. Or specifically:

* Make the whole document RTL
* Make various paragraphs LTR

I guess I need to override some styles. With asciidoc I could not find a
simple way to do that and ended up having to create my own separate
"bidi" style. I didn't yet check all the various reSt and markdown
implementations. Any better alternatives?

--

-- 
Tzafrir Cohen         | tzafrir@... | VIM is
http://tzafrir.org.il |                    | a Mutt's
tzafrir@... |                    |  best
tzafrir@...    |                    | friend

_______________________________________________
Linux-il mailing list
Linux-il@...
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il

Erez D | 3 Mar 16:12 2015
Picon

compiling kernel module

hi

i have a rooted lenovo vibe x2. i want to compile a kernel module for it.

i did a 'make ARCH=arm CROSS_COMPILE=... M=subdir' and got my module.ko

when i insmod, i get: exec format error
and dmesg:
version magic '3.10.35 mod_unload modversions ARMv7 p2v8 ' should be '3.10.35 SMP preempt mod_unload ARMv7 '

i tried playing with configuration, and got to '3.10.35 SMP preempt mod_unload ARMv7 p2v8 '
however i can not loose the p2v8

this seems to come from: CONFIG_ARM_PATCH_PHYS_VIRT,if i comment out the CONFIG_ARM_PATCH_PHYS_VIRT, it reenables it when i compile.

looking further i found:

Symbol: ARM_PATCH_PHYS_VIRT [=y]
Type  : boolean
Prompt: Patch physical to virtual translations at runtime
Defined at arch/arm/Kconfig:219
Depends on: !XIP_KERNEL [=n] && MMU [=y] && (!ARCH_REALVIEW [=n] || !SPARSEMEM [=n])
Selected by: ARCH_MXC [=n] || ARCH_PICOXCELL [=n] || ARCH_MULTIPLATFORM [=y] && <choice> && MMU

i can not disable MMU, as it changes to armv5
disabling ARCH_MULTIPLATFORM  means i need to select a processor type
any of the 'ARM Ltd.' either doesn't compile or is ignored
and i do not know what the '<choice>' is

i tried downloading source from lenovo.
they have instructions to compile with:
./mk x2ap n k

however i cannot find 'mk' anywhere, not in their tar, not in android sdk nor ndk etc.
and can't find any specific config file.
compiling with their source gives the same magic '3.10.35 mod_unload modversions ARMv7 p2v8 ' as the vanilla does

any idea anyone ?




_______________________________________________
Linux-il mailing list
Linux-il@...
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il

Gmane